package com.cxyd.modules.wms.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.cxyd.common.entity.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 调拨记录
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wms_allot_record")
public class AllotRecordEntity extends WmsBaseEntity {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    /**
     * 波次号
     */
    @ExcelIgnore
    private String allotNo;

    /**
     * REELID
     */
    @ExcelIgnore
    private String reelId;
    /**
     * 商品编号
     */
    @ExcelProperty("material")
    private String spuNo;
    @ExcelIgnore
    private String spuName;
    /**
     * 计划量
     */
    @ExcelProperty("req.Qty")
    private BigDecimal planQty;
    /**
     * 实发量
     */
    @ExcelIgnore
    private BigDecimal actlQty;

    /**
     * 缺货数量
     */
    @ExcelIgnore
    @TableField(exist = false)
    private BigDecimal lackQty;
    /**
     * 单据状态(0-初始 1-备货中 2-备货完成 3-出库中 4-出库完成 9-单据撤销)
     */
    @ExcelIgnore
    private Integer status;

    @ExcelProperty("LOCATION")
    private String locate;
    /**
     * 更新用户
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Long updater;
    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Date updateDate;
    /**
     * 备注
     */
    @ExcelIgnore
    private String comments;
}